forum

home / developersection / forums / how do we create a temporary file in ios

How do we create a temporary file in iOS

Tarun Kumar 2835 05-Sep-2015

In C# we could easily create a temporary file and get its name using this function:

Path.GetTempFileName();

 

This function would create a file with a unique name in the temporary directory and return the full path to that file.

In the Cocoa API's, the closest thing we find is: NSTemporaryDirectory

We are missing something obvious or is there no built in way to do this?


Updated on 07-Sep-2015
Tarun Kumar

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By